<template>
  <router-view v-slot="{ Component }">
    <keep-alive :include="cache.nameList">
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<script setup>
import { useGetKeepAlive } from '@/utils/useHooks'
let cache = useGetKeepAlive() // 获取缓存路由配置信息
</script>

<style lang="scss" scoped></style>
